/**
 * fulihui.com Inc.
 * Copyright (c) 2015-2016 All Rights Reserved.
 */
package com.fulihui.information.dal.mapper;

import com.fulihui.information.dal.dataobj.InfoComments;
import com.fulihui.information.dal.dataobj.InfoCommentsExample;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface InfoCommentsMapper {

    boolean insertSelective(InfoComments record);

    List<InfoComments> queryByPage(@Param("newsId") String newsId, @Param("userId") String userId,
                                   @Param("toUserId") String toUserId, @Param("start") int start,
                                   @Param("rows") int rows);

    int queryByCount(@Param("newsId") String newsId, @Param("userId") String userId,
                     @Param("toUserId") String toUserId);

    List<InfoComments> selectByDiscussId(@Param("discussId") Long discussId);


    int insert(InfoComments record);

    int deleteByExample(InfoCommentsExample example);

    List<InfoComments> selectByExample(InfoCommentsExample example);

    boolean updateFabulousCount(@Param("id") Long id);

    long countByExample(InfoCommentsExample example);


    InfoComments selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") InfoComments record,
                                 @Param("example") InfoCommentsExample example);

    int updateByExample(@Param("record") InfoComments record,
                        @Param("example") InfoCommentsExample example);

    int updateByPrimaryKeySelective(InfoComments record);

    int deleteByPrimaryKey(Long id);


    int updateByPrimaryKey(InfoComments record);

}
